<template>
    <div class="classList">
        <div class="titlebox">
            班级管理
        </div>
        <div class="screen_content">
            <div class="title">
                筛选
            </div>

            <div>
                <el-form :inline="true" :model="formInline" class="demo-form-inline">
                    <el-form-item label="班级：">
                        <el-input v-model="formInline.user" placeholder="请选择"></el-input>
                    </el-form-item>
                    <el-form-item label="年级：">
                        <el-select v-model="formInline.region" placeholder="请选择">
                            <el-option label="区域一haha" value="shanghai"></el-option>
                            <el-option label="区域二" value="beijing"></el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="班级：">
                        <el-input v-model="formInline.user" placeholder="请输入"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <div class="btnBox">
                            查询
                        </div>
                    </el-form-item>
                </el-form>
            </div>
        </div>


        <div class="classList_content">
            <div class="classItem" v-for="(item, index) in classList" :key="index">
                <div class="itemLeft">
                    <img class="classIcon" src="@/static/image/classicon.png" alt="" srcset="">
                    <div class="itemMessage">
                        <div class="className">
                            {{ item.className }}
                        </div>
                        <div class="gradeName">
                            {{ item.gradeName }}
                        </div>
                        <div class="messageBottom">
                            <span>共 <span>16</span>人</span> <span>本周批改教师：{{ item.teacherName }}</span>
                        </div>
                    </div>
                </div>

                <div class="itemRight">
                    <div class="itemRight_content" @click="shareShow = true">
                        <img src="@/static/image/shareicon.png" alt="" srcset="">
                        <div>邀请学生</div>
                    </div>
                    <div class="itemRight_content">
                        <img src="@/static/image/classglicon.png" alt="" srcset="">
                        <div>班级管理</div>
                    </div>
                    <img class="tableIcon" src="@/static/image/tjicon.png" alt="" srcset="">
                </div>
            </div>

            <div class="createClass" @click="createClassShow = true">
                <img class="icon" src="@/static/image/creareClass.png" alt="" srcset="">
                <div>创建班级</div>
            </div>

        </div>


        <!-- 邀请学生 -->
        <el-dialog :visible.sync="shareShow" :show-close="false" width="20%">
            <div class="shareBox">
                <div class="headerBox">
                    <div class="title">
                        邀请学生
                    </div>
                    <div class="closebox">
                        <i class="el-icon-close" @click="shareShow = false"></i>
                    </div>
                </div>

                <div class="shareDesc">
                    邀请学生一起加入新班级吧！
                </div>

                <div class="shareimgbox">
                    <img class="imgbox" src="@/static/image/shareewm.jpg" alt="" srcset="">
                </div>

                <div class="sharebtn">
                    分享二维码
                </div>
            </div>
        </el-dialog>

        <!-- 邀请学生 -->
        <el-dialog :visible.sync="createClassShow" :show-close="false" width="20%">
            <div class="createClarrbox">
                <div class="headerBox">
                    <div class="title">
                        创建班级
                    </div>
                    <div class="closebox">
                        <i class="el-icon-close" @click="createClassShow = false"></i>
                    </div>
                </div>

                <div class="classname">

                </div>

            </div>
        </el-dialog>
    </div>
</template>
<script>
export default {
    data() {
        return {
            formInline: {
                user: '',
                region: ''
            },
            classList: [
                {
                    className: "精英班",
                    classNumber: "176459",
                    peplenumber: "26",
                    teacherName: "小红老师",
                    gradeName: "三年级",
                },
                {
                    className: "L2-99",
                    classNumber: "1765659",
                    peplenumber: "26",
                    teacherName: "王老师",
                    gradeName: "四年级",
                },
            ],
            shareShow: false,//邀请弹框
            createClassShow: false,//创建班级
        }
    },
    created() {

    },
    mounted() {

    },
    methods: {
        onSubmit() {
            console.log('submit!');
        }
    }
}
</script>
<style scoped lang="scss">
.classList {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;

    .titlebox {
        font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
        font-weight: 500;
        font-size: 14px;
        color: #5C5C5C;
        line-height: 16px;
    }

    .screen_content {
        width: 100%;
        height: 102px;
        background: #FFFFFF;
        border-radius: 4px 4px 4px 4px;
        margin-top: 16px;
        padding: 16px;
        box-sizing: border-box;

        .title {
            font-family: PingFang SC, PingFang SC;
            font-weight: 550;
            font-size: 16px;
            color: #333333;
            line-height: 19px;
            text-align: left;
            margin-bottom: 10px;
        }

        .btnBox {
            width: 120px;
            height: 40px;
            background: #4BA840;
            border-radius: 4px 4px 4px 4px;
            font-family: PingFang SC, PingFang SC;
            font-weight: 500;
            font-size: 14px;
            color: #FFFFFF;
            line-height: 40px;
            text-align: center;
            cursor: pointer;
        }
    }

    .classList_content {
        width: 100%;
        margin-top: 16px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;


        .classItem {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 49%;
            height: 126px;
            background: #FFFFFF;
            border-radius: 8px 8px 8px 8px;
            padding: 26px;
            box-sizing: border-box;
            margin-bottom: 16px;


            .itemLeft {
                display: flex;
                align-items: center;

                .classIcon {
                    width: 32px;
                    height: 32px;
                }

                .itemMessage {
                    margin-left: 12px;

                    .className {
                        font-family: PingFang SC, PingFang SC;
                        font-weight: 400;
                        font-size: 16px;
                        color: #333333;
                        line-height: 19px;
                    }

                    .gradeName {
                        font-family: PingFang SC, PingFang SC;
                        font-weight: 400;
                        font-size: 12px;
                        color: #777777;
                        line-height: 14px;
                        margin: 8px 0;
                    }

                    .messageBottom {
                        font-family: PingFang SC, PingFang SC;
                        font-weight: 400;
                        font-size: 14px;
                        color: #777777;
                        line-height: 16px;
                    }
                }
            }

            .itemRight {
                display: flex;
                align-items: center;

                .itemRight_content {
                    width: 104px;
                    height: 36px;
                    background: #EAF9E8;
                    border-radius: 4px 4px 4px 4px;
                    font-family: PingFang SC, PingFang SC;
                    font-weight: 400;
                    font-size: 14px;
                    color: #4BA840;
                    line-height: 16px;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin-right: 12px;
                    padding: 12px;
                    box-sizing: border-box;
                    cursor: pointer;

                    img {
                        width: 17px;
                        height: 17px;
                    }
                }

                .tableIcon {
                    width: 22px;
                    height: 22px;
                    cursor: pointer;
                }
            }
        }



        .createClass {
            width: 49%;
            height: 126px;
            background: #FFFFFF;
            border-radius: 8px 8px 8px 8px;
            font-family: PingFang SC, PingFang SC;
            font-weight: 500;
            font-size: 16px;
            color: #777777;
            line-height: 19px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            cursor: pointer;

            .icon {
                width: 37px;
                height: 32.35px;
                margin-right: 12px;
            }
        }
    }

}

.shareBox {
    width: 377px;
    height: 304px;
    background: #FFFFFF;
    border-radius: 8px 8px 8px 8px;

    .headerBox {
        width: 377px;
        height: 56px;
        background: #4BA840;
        border-radius: 7px 7px 0px 0px;
        position: relative;

        .title {
            width: 100%;
            font-family: PingFang SC, PingFang SC;
            font-weight: 500;
            font-size: 16px;
            color: #FFFFFF;
            line-height: 19px;
            text-align: center;
            line-height: 56px;
        }

        .closebox {
            position: absolute;
            top: 21px;
            right: 21px;

            .el-icon-close {
                width: 14px;
                height: 14px;
                color: #FFFFFF;
                line-height: 14px;
                cursor: pointer;
            }
        }
    }

    .shareDesc {
        width: 100%;
        text-align: center;
        font-family: PingFang SC, PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #777777;
        line-height: 16px;
        margin-top: 23px;
    }

    .shareimgbox {
        width: 123px;
        height: 123px;
        margin: 0 auto;
        margin-top: 10px;

        .imgbox {
            width: 100%;
            height: 100%;
        }
    }

    .sharebtn {
        width: 139px;
        height: 40px;
        background: #EAF9E8;
        border-radius: 4px 4px 4px 4px;
        font-family: PingFang SC, PingFang SC;
        font-weight: 400;
        font-size: 16px;
        color: #333333;
        line-height: 40px;
        text-align: center;
        margin: 0 auto;
        margin-top: 12px;
        cursor: pointer;
    }
}

.createClarrbox {
    width: 377px;
    min-height: 280px;
    background: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    background-color: #ffffff;
    position: relative;

    .title {
        width: 100%;
        height: 56px;
        border-radius: 7px 7px 0px 0px;
        background: #4BA840;
        font-family: PingFang SC, PingFang SC;
        font-weight: 500;
        font-size: 16px;
        color: #FFFFFF;
        line-height: 19px;
        text-align: center;
        line-height: 56px;
    }

    .closebox {
        position: absolute;
        top: 21px;
        right: 21px;

        .el-icon-close {
            width: 14px;
            height: 14px;
            color: #FFFFFF;
            line-height: 14px;
            cursor: pointer;
        }
    }

    .classname {
        width: 321px;
        height: 44px;
        border-radius: 0px 0px 0px 0px;
    }

}

::v-deep .el-input__inner:active {
    border: 1px solid #4BA840;
}

::v-deep .el-input__inner:focus {
    border: 1px solid #4BA840;
}

::v-deep .el-select .el-input.is-focus .el-input__inner {
    border: 1px solid #4BA840;
}

::v-deep .el-form-item__label {
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 12px;
    color: #777777;
}

::v-deep .el-form-item__content {
    line-height: 20px;

}

::v-deep .el-form-item__label {
    line-height: 20px;

}

::v-deep .el-input .el-input__inner {
    width: 179px;
    height: 35px !important;
    border-radius: 4px 4px 4px 4px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
}

::v-deep.el-input__icon {
    line-height: 25px;
}

::v-deep .el-select .el-input .el-select__caret {
    font-size: 12px !important;
}

::v-deep .el-dialog {
    background-color: transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0);
}
</style>